package FlowGraph.Nodes;

import antlr.collections.AST;

import util.Line;
import FlowGraph.FlowGraphNode;

//////////////////////////////////////////////////////////////////////////
//// BreakNode
/**

@author Ivan Jeukens
@version v 0.1 03/10/2001
*/
public class BreakNode extends FlowGraphNode {

    public BreakNode(AST node) {
        super(node, BREAK);
        _label = node.getFirstChild();
    }

    ///////////////////////////////////////////////////////////////////
    ////                        public methods                     ////

    public AST getTarget() {
        return _label;
    }
    
    public void setLine(Line l) {
        _line = l;
    }
    
    public Line getLine() {
        return _line;
    }
    
    ///////////////////////////////////////////////////////////////////
    ////                      private variables                    ////

    private AST _label;
    private Line _line;
}
